package com.example.demo.controller;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.example.demo.service.TestService;

@Controller
public class TestController {
	@Resource
	private TestService testService;
	
	
	@RequestMapping(value = "/test")
	public String testPage() {
		testService.sss();
		System.out.println();
		System.out.println("testService.getOne() = " + testService.getOne());
		return "index";
	}
	
	
}
